﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="newPayout.aspx.cs" Inherits="AutoInsurance.newPayout" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label1" runat="server" Text="Страховые выплаты"></asp:Label>
    <asp:GridView ID="GridView1" runat="server" DataKeyNames="id_payout" AutoGenerateColumns="False">
    <Columns>
                <asp:BoundField DataField="id_payout" HeaderText="id_payout" SortExpression="id_payout" />
                <asp:BoundField DataField="dateofpayout" HeaderText="Дата выплаты" 
                    SortExpression="dateofpayout" />
                <asp:BoundField DataField="id_accident" HeaderText="id_accident" 
                    SortExpression="id_accident" />
                <asp:BoundField DataField="payout" HeaderText="Размер выплаты" SortExpression="payout" /> 
                <asp:BoundField DataField="id_manager" HeaderText="id_manager" SortExpression="id_manager" /> 
                </Columns>
    </asp:GridView>
    <asp:Panel ID="Panel1" runat="server" Height="100px">
        Введите дату выплаты
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator id="RequiredFieldValidator1"
                    ControlToValidate="TextBox1"
                    Display="Static"
                    ErrorMessage="RequiredFieldValidator"
                    runat="server"> Нужно ввести дату выплаты</asp:RequiredFieldValidator>

                    <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="TextBox1" 
                    ErrorMessage="Неверный формат даты!" Operator="DataTypeCheck" Type="Date" Display="Dynamic" 
                    ValueToCompare="MM/dd/yyyy"></asp:CompareValidator> 
        <br />
        <br />
        <br />
        Введите сумму выплаты
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator id="RequiredFieldValidator2"
                    ControlToValidate="TextBox2"
                    Display="Static"
                    ErrorMessage="RequiredFieldValidator"
                    runat="server"> Нужно сумму выплаты</asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Button ID="Button2" runat="server" Text="Добавить выплату" Width="128px" 
            onclick="Button2_Click" />
    </asp:Panel>
</asp:Content>
